package com.wujian.love.domin;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * rocketmq消息记录表 rocket_message
 *
 * @author cdw
 * @date 2020-07-08
 */
public class RocketMessage extends BaseDomin {
    private static final long serialVersionUID = 1L;


    public static final String CONSUME_FlAG_FALSE = "0";

    public static final String CONSUME_FlAG_TRUE = "1";

    /**
     *
     */
    private Integer id;
    /**
     * 消息类型
     */
    private String messageType;
    /**
     * 主题
     */
    private String messageTopic;
    /**
     * 标签
     */
    private String messageTag;
    /**
     *
     */
    private String messageKeys;
    /**
     * 消费状态(0:未消费;1已消费)
     */
    private String consumeFlag;
    /**
     * 消费时间
     */
    private Date consumeTime;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageTopic(String messageTopic) {
        this.messageTopic = messageTopic;
    }

    public String getMessageTopic() {
        return messageTopic;
    }

    public void setMessageTag(String messageTag) {
        this.messageTag = messageTag;
    }

    public String getMessageTag() {
        return messageTag;
    }

    public void setMessageKeys(String messageKeys) {
        this.messageKeys = messageKeys;
    }

    public String getMessageKeys() {
        return messageKeys;
    }

    public void setConsumeFlag(String consumeFlag) {
        this.consumeFlag = consumeFlag;
    }

    public String getConsumeFlag() {
        return consumeFlag;
    }

    public void setConsumeTime(Date consumeTime) {
        this.consumeTime = consumeTime;
    }

    public Date getConsumeTime() {
        return consumeTime;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("messageType", getMessageType())
                .append("messageTopic", getMessageTopic())
                .append("messageTag", getMessageTag())
                .append("messageKeys", getMessageKeys())
                .append("consumeFlag", getConsumeFlag())
                .append("createTime", getCreateTime())
                .append("consumeTime", getConsumeTime())
                .append("remark", getRemark())
                .toString();
    }
}
